package com.example.controller.wechat;

import com.example.pojo.web.Result;
import com.example.service.wechat.ShapeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName ShapeController
 * @Description: com.example.controller.wechat
 * @Auther: xiwd
 * @Date: 2022/4/16 - 04 - 16 - 15:34
 * @version: 1.0
 */
@Controller
@RequestMapping("/shape")
public class ShapeController {
    //properties
    @Autowired
    private ShapeService shapeService;

    //methods
    /**
     * 获取所有的停车区多边形
     * @return
     */
    @ResponseBody
    @RequestMapping(value = "/get/all")
    public Result getAllWxPolygon_StopPlaques(){
        return shapeService.getAllWxPolygon_StopPlaques();
    }


    /**
     * 获取所有的自行车点
     * @return
     */
    @ResponseBody
    @RequestMapping(value = "/get/all/bikes")
    public Result getAllWxMarker_Bikes(){
        return shapeService.getAllWxMarker_Bikes();
    }

}
